﻿{"tuanno":{$nn},"tuandata":[<!--{if $nn>0}--><!--{loop $teams_ev56_sql $tindex $oneev56}--><!--${$n++;}--><!--${$team_partner_id = $oneev56['partner_id'];$team_partner = Table::Fetch('partner', $team_partner_id);}--><!--${if ($n==$nn){$d="";}else {$d=",";}}-->{"tid":"{$oneev56['id']}","subject":"{$oneev56['title']}","name":"{$team_partner['title']}","price":${moneyit($oneev56['team_price'])},"market_price":${moneyit($oneev56['market_price'])},"thumb":"${team_image($oneev56['image'],true)}","isnew":<!-- {if $oneev56['team_tags'] == 1 or $oneev56['team_tags'] == 12 or $oneev56['team_tags'] == 123 or $oneev56['team_tags'] == 13} -->1<!-- {else} -->0<!-- {/if} -->,"extratext":"\u5df2\u552e{$oneev56['now_number']}","yuyue":"<!-- {if $oneev56['team_tags'] == 2 or $oneev56['team_tags'] == 12 or $oneev56['team_tags'] == 123 or $oneev56['team_tags'] == 23} -->1<!-- {else} -->0<!-- {/if} -->","fanmoney":"","juli":"<?php
$ll = $team_partner['longlat'];
if ($ll){ 
list($longi,$lati) = preg_split('/[,\s]+/',$ll,-1,PREG_SPLIT_NO_EMPTY);
$distance=round(getdistance($lat,$lng,$lati,$longi),2)."km";
}else
	$distance="未知";
echo $distance;
?>","companynameextra":"{$team_partner['title']}<\/div><
<?php 
echo $distance;
?><\/div><\/div>"}{$d}
<!-- {/loop} --><!-- {/if} -->],"userid":0}